import SearchController.SearchBarController;
import SearchModels.Logic;
import SearchViews.SearchBar;
import SearchViews.Widget;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Israel Agyeman-Premp
 */
public class Main {

    public static void main(String ags[]) {
        /* Set the Windows look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* Setting the looka and feel of the app */
        try {
            // Set System L&F
            UIManager.setLookAndFeel(
                    UIManager.getSystemLookAndFeelClassName());
        } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
            // handle exception
            System.out.println("Theme not available");
        }

        //</editor-fold>
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                Logic l = new Logic();
                Widget w = new Widget();
                SearchBar s = new SearchBar();
                SearchBarController sbc = new SearchBarController(s,w,l);
                sbc.control();
                
            }
        });
    }

}
